<template>
  <view class="flex-col page">
    <text class="self-center text_2">训练</text>
    <view class="flex-col self-stretch group_2">
      <text class="self-start font text_3">近期训练</text>
      <view class="flex-col self-stretch mt-21" v-if="items.lenght > 0">
        <view
          class="flex-row justify-between items-center relative section list-item mt-17"
          v-for="(item, index) in items"
          :key="index"
        >
          <view class="flex-row items-center">
            <view class="flex-col justify-start items-center shrink-0 image-wrapper">
              <image
                class="image_4"
                src="https://alicdn.joyballet.cn/eyemanager/wechat/report_green.png"
              />
            </view>
            <view class="flex-col shrink-0 group_3 ml-17">
              <text class="self-start font text_4">视力训练</text>
              <text class="self-stretch font_2 text_5 mt-11">2025年 3月21日</text>
            </view>
          </view>
          <image
            class="image_5"
            src="https://alicdn.joyballet.cn/eyemanager/wechat/report_more.png"
          />
        </view>
      </view>
      <view class="flex-col self-stretch mt-21" v-else>
        <view
          class="flex-row justify-between items-center relative section list-item mt-17"
        >
          <view class="flex-row items-center">
            <view class="flex-col justify-start items-center shrink-0 image-wrapper">
              <image
                class="image_4"
                src="https://alicdn.joyballet.cn/eyemanager/wechat/report_green.png"
              />
            </view>
            <view class="flex-col shrink-0 group_3 ml-17">
              <text class="self-start font text_4">暂无训练……</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    components: {},
    props: {},
    data() {
      return {
        items: [],
      };
    },

    methods: {},
  };
</script>

<style scoped lang="css">
  .no_report {
    text-align: center;
    padding: 20vw 0vw;
    font-weight: bold;
    font-size: 18px;
  }
  .ml-5 {
    margin-left: 10rpx;
  }
  .mt-21 {
    margin-top: 42rpx;
  }
  .ml-17 {
    margin-left: 34rpx;
  }
  .mt-17 {
    margin-top: 34rpx;
  }
  .mt-11 {
    margin-top: 22rpx;
  }
  .page {
    padding: 0rpx 0 28rpx;
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
  }
  .group {
    padding-left: 60rpx;
    padding-right: 38rpx;
  }
  .text {
    color: #141023;
    font-size: 30rpx;
    font-family: HarmonyOSSansSC;
    font-weight: 300;
    line-height: 22.62rpx;
  }
  .image {
    width: 34rpx;
    height: 22rpx;
  }
  .image_2 {
    width: 30rpx;
    height: 22rpx;
  }
  .image_3 {
    width: 48rpx;
    height: 22.66rpx;
  }
  .text_2 {
    margin-top: 0rpx;
    color: #0e1012;
    font-size: 54rpx;
    font-family: NunitoSans;
    font-weight: 700;
    line-height: 50.92rpx;
  }
  .group_2 {
    margin-top: 96rpx;
    padding-left: 74rpx;
    padding-right: 36rpx;
  }
  .font {
    font-size: 36rpx;
    font-family: NunitoSans;
    line-height: 33.94rpx;
    font-weight: 700;
    color: #0e1012;
  }
  .text_3 {
    font-size: 34rpx;
    line-height: 32.06rpx;
  }
  .section {
    padding: 28rpx 20rpx;
    background-color: #ffffff;
    border-radius: 56rpx;
    box-shadow: 0rpx 12rpx 48rpx #6b86b340;
    border-left: solid 2rpx #d7ddea;
    border-right: solid 2rpx #d7ddea;
    border-top: solid 2rpx #d7ddea;
    border-bottom: solid 2rpx #d7ddea;
  }
  .list-item:first-child {
    margin-top: 0;
  }
  .image-wrapper {
    padding: 32rpx 0;
    background-color: #dcedf9;
    border-radius: 40rpx;
    width: 128rpx;
    height: 128rpx;
  }
  .image_4 {
    width: 64rpx;
    height: 64rpx;
  }
  .group_3 {
    width: 100%;
  }
  .text_4 {
    line-height: 34.34rpx;
  }
  .font_2 {
    font-size: 28rpx;
    font-family: NunitoSans;
    color: #4a545e;
  }
  .text_5 {
    line-height: 36.96rpx;
  }
  .image_5 {
    margin-right: 12rpx;
    width: 40rpx;
    height: 40rpx;
  }
  .equal-division {
    align-self: stretch;
    margin-top: 734rpx;
  }
  .group_4 {
    flex: 1 1 167.34rpx;
  }
  .equal-division-item {
    padding: 8rpx 0;
  }
  .image_6 {
    width: 48rpx;
    height: 48rpx;
  }
  .font_3 {
    font-size: 24rpx;
    font-family: NunitoSans;
    line-height: 22.24rpx;
    color: #7b8d9e;
  }
  .text_7 {
    color: #1c6ba4;
  }
</style>